STEP 15: Let's change the last line of code we dragged into the editor!

When we multiply a string by an integer, the new string is the original string repeated a certain number of times. For example: "Hello!"*4 equals "Hello!Hello!Hello!Hello!".

  • Change the variable to the left of the = sign from my_var to hidden_response.
  • Then, change "Hello!" to "-" and 4 to var_length.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)